]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Unset preemptiveAnswer on reset
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 28 May 2018 23:51:00 +0000 (02:51 +0300)
committerMarco Trevisan <mail@3v1n0.net>
Wed, 25 Jul 2018 20:32:41 +0000 (20:32 +0000)
When we get a reset signal the preemptiveAnswer should be also unset or it will
be used next time the user authPrompt will be activated, even without any further
user interaction.

Fixes #311

js/gdm/authPrompt.js

index 481cd3a77833657bc3d0e7020c1cfc51aac795b8..d9ec7eea828599c48c01385b6a39bbaeb42a8eb0 100644 (file)
@@ -439,6 +439,7 @@ var AuthPrompt = new Lang.Class({
         this.verificationStatus = AuthPromptStatus.NOT_VERIFYING;
         this.cancelButton.reactive = true;
         this.nextButton.label = _("Next");
+        this._preemptiveAnswer = null;
 
         if (this._userVerifier)
             this._userVerifier.cancel();